package com.yxw.yxnet_cd_center.customer_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author fangmaoxin
 * @version 1.0
 * @date 2023年9月19日
 * 渠道活跃度统计-实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "渠道活跃度统计对象", description = "渠道活跃度统计")
@TableName("yx_cs_channel_statistics")
public class YxCsChannelStatisticsEntity implements Serializable {

    private static final long serialVersionUID = 91694761863880L;

    /**
     * 渠道活跃度统计主键ID
     */
    @TableId(value = "statistics_id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long statisticsId;

    /**
     * 渠道ID
     */
    @ApiModelProperty(value = "渠道ID")
    private Long channelId;

    /**
     * 渠道编码
     */
    @ApiModelProperty(value = "渠道编码")
    private String channelCode;


    /**
     * 渠道名称
     */
    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    /**
     * 今日咨询数
     */
    @ApiModelProperty(value = "今日咨询数")
    private Integer dayConsultCnt;

    /**
     * 历史咨询数
     */
    @ApiModelProperty(value = "历史咨询数")
    private Integer hisConsultCnt;

    /**
     * 今日处理率
     */
    @ApiModelProperty(value = "今日处理率")
    private String dayHandleRate;

    /**
     * 历史处理率
     */
    @ApiModelProperty(value = "历史处理率")
    private String hisHandleRate;

    /**
     * 比前一日活跃度
     */
    @ApiModelProperty(value = "比前一日活跃度")
    private String activeRate;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 统计日期yyyyMMdd
     */
    @ApiModelProperty(value = "统计日期yyyyMMdd")
    private Long pDay;
}